package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallRewardRuleConfig;
import org.linlinjava.litemall.db.domain.LitemallRewardRuleConfigExample;

public interface LitemallRewardRuleConfigMapper extends MPJBaseMapper<LitemallRewardRuleConfig> {
    long countByExample(LitemallRewardRuleConfigExample example);

    int deleteByExample(LitemallRewardRuleConfigExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LitemallRewardRuleConfig record);

    int insertSelective(LitemallRewardRuleConfig record);

    LitemallRewardRuleConfig selectOneByExample(LitemallRewardRuleConfigExample example);

    LitemallRewardRuleConfig selectOneByExampleSelective(@Param("example") LitemallRewardRuleConfigExample example, @Param("selective") LitemallRewardRuleConfig.Column ... selective);

    List<LitemallRewardRuleConfig> selectByExampleSelective(@Param("example") LitemallRewardRuleConfigExample example, @Param("selective") LitemallRewardRuleConfig.Column ... selective);

    List<LitemallRewardRuleConfig> selectByExample(LitemallRewardRuleConfigExample example);

    LitemallRewardRuleConfig selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRewardRuleConfig.Column ... selective);

    LitemallRewardRuleConfig selectByPrimaryKey(Integer id);

    LitemallRewardRuleConfig selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LitemallRewardRuleConfig record, @Param("example") LitemallRewardRuleConfigExample example);

    int updateByExample(@Param("record") LitemallRewardRuleConfig record, @Param("example") LitemallRewardRuleConfigExample example);

    int updateByPrimaryKeySelective(LitemallRewardRuleConfig record);

    int updateByPrimaryKey(LitemallRewardRuleConfig record);

    int logicalDeleteByExample(@Param("example") LitemallRewardRuleConfigExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}